package com.example.sprintboot.entity;

import lombok.Data;

import java.time.LocalDateTime;

@Data
public class Gourmet {
    private Integer id;
    private Integer userId;
    private Integer categoryId;
    private String title;
    private String content;
    private String image;
    private Integer isAudit;
    private Integer isPublic;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
    private Integer viewCount;
    private Integer likeCount;
    private Integer upvotCount;
    private Double rating;
    // 关联对象
    private Category category;  // 分类对象
    private User user;          // 用户对象

}
